package com.scsj.supermarket.base;

import com.scsj.supermarket.bean.AppCommodityEvaluationBean;
import com.scsj.supermarket.bean.SelectAppRankBean;

import dkmvp.net.ResponseCallback;
import okhttp3.RequestBody;
import rx.Subscription;

/**
 * App显示商品评论和店铺评论
 * 通过全部，好评，中评，差评来展示数据
 */

public class AppCommodityEvaluationBase {
    public interface IView {

        /**
         * App显示商品评论和店铺评论
         * @param s
         * @param appCommodityEvaluationBean
         */
        void showSuccessMsg(String s, AppCommodityEvaluationBean appCommodityEvaluationBean);

        /**
         * 通过全部，好评，中评，差评来展示数据
         * @param s
         * @param selectAppRankBean
         */
        void showSelectSuccessMsg(String s, SelectAppRankBean selectAppRankBean );

        void showErrorMsg(String s);
    }

    public interface IPresenter {

        /**
         * 获取商品评论所有数据
         * @param requestBody
         */
        void deliverData(RequestBody requestBody);

        /**
         * 通过全部，好评，中评，差评来展示数据
         * @param requestBody
         */
        void deliverSelectData(RequestBody requestBody);


    }

    public interface IModel {

        Subscription getData(RequestBody requestBody, ResponseCallback<AppCommodityEvaluationBean> callback);

        Subscription getSelectData(RequestBody requestBody, ResponseCallback<SelectAppRankBean> callback);
    }
}
